#define _CRT_SECURE_NO_WARNINGS 1

void moveZeroes(int* nums, int numsSize) 
{
	int i = 0;
	int j = 0;
	while (j<numsSize)
	{
		while (nums[j] == 0&&j<numsSize)
			j++;
		while (nums[i] != 0&&i<numsSize)
			i++;
		int tmp = 0;
		tmp = nums[i];
		nums[i] = nums[j];
		nums[j] = tmp;
		 i++;
	}
}